import logging

def log():
    log = logging.basicConfig(level=logging.INFO,
                        filename='a3mall.log',
                        filemode='w',
                        format='%(levelname)s %(message)s %(asctime)s %(filename)s %(lineno)d')
    return log

